package com.party.core.model.crowdfund;

import com.party.core.model.BaseModel;

import java.util.Date;

/**
 * 众筹分析
 * Created by wei.li
 *
 * @date 2017/7/7 0007
 * @time 14:49
 */
public class Analyze extends BaseModel {
    private static final long serialVersionUID = -5694890927696060018L;

    //目标编号
    private String targetId;

    //是否加好友
    private Integer isFriend;

    //是否加群
    private Integer isGroup;

    // 是否做海报
    private Integer isPoster;

    // 是否关注
    private Integer isSubscribe;

    //最近的跟进记录
    private String recentlyRecord;

    //最近跟进时间
    private Date recentlyRecordDate;

    //加好友次数
    private Integer friendNum;

    //做海报次数
    private Integer posterNum;

    //入群沟通次数
    private Integer groupNum;

    //电话沟通次数
    private Integer telephoneNum;

    //最近7天数据的总和
    private Float sevenDaysNum;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Float getSevenDaysNum() {
        return sevenDaysNum;
    }

    public void setSevenDaysNum(Float sevenDaysNum) {
        this.sevenDaysNum = sevenDaysNum;
    }

    public Integer getFriendNum() {
        return friendNum;
    }

    public void setFriendNum(Integer friendNum) {
        this.friendNum = friendNum;
    }

    public Integer getPosterNum() {
        return posterNum;
    }

    public void setPosterNum(Integer posterNum) {
        this.posterNum = posterNum;
    }

    public Integer getGroupNum() {
        return groupNum;
    }

    public void setGroupNum(Integer groupNum) {
        this.groupNum = groupNum;
    }

    public Integer getTelephoneNum() {
        return telephoneNum;
    }

    public void setTelephoneNum(Integer telephoneNum) {
        this.telephoneNum = telephoneNum;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public Integer getIsFriend() {
        return isFriend;
    }

    public void setIsFriend(Integer isFriend) {
        this.isFriend = isFriend;
    }

    public Integer getIsGroup() {
        return isGroup;
    }

    public void setIsGroup(Integer isGroup) {
        this.isGroup = isGroup;
    }

    public String getRecentlyRecord() {
        return recentlyRecord;
    }

    public void setRecentlyRecord(String recentlyRecord) {
        this.recentlyRecord = recentlyRecord;
    }

    public Date getRecentlyRecordDate() {
        return recentlyRecordDate;
    }

    public void setRecentlyRecordDate(Date recentlyRecordDate) {
        this.recentlyRecordDate = recentlyRecordDate;
    }

    public Integer getIsSubscribe() {
        return isSubscribe;
    }

    public void setIsSubscribe(Integer isSubscribe) {
        this.isSubscribe = isSubscribe;
    }

    public Integer getIsPoster() {
        return isPoster;
    }

    public void setIsPoster(Integer isPoster) {
        this.isPoster = isPoster;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        Analyze analyze = (Analyze) o;

        if (targetId != null ? !targetId.equals(analyze.targetId) : analyze.targetId != null) return false;
        if (isFriend != null ? !isFriend.equals(analyze.isFriend) : analyze.isFriend != null) return false;
        if (isGroup != null ? !isGroup.equals(analyze.isGroup) : analyze.isGroup != null) return false;
        if (isPoster != null ? !isPoster.equals(analyze.isPoster) : analyze.isPoster != null) return false;
        if (isSubscribe != null ? !isSubscribe.equals(analyze.isSubscribe) : analyze.isSubscribe != null) return false;
        if (recentlyRecord != null ? !recentlyRecord.equals(analyze.recentlyRecord) : analyze.recentlyRecord != null)
            return false;
        return recentlyRecordDate != null ? recentlyRecordDate.equals(analyze.recentlyRecordDate) : analyze.recentlyRecordDate == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (targetId != null ? targetId.hashCode() : 0);
        result = 31 * result + (isFriend != null ? isFriend.hashCode() : 0);
        result = 31 * result + (isGroup != null ? isGroup.hashCode() : 0);
        result = 31 * result + (isPoster != null ? isPoster.hashCode() : 0);
        result = 31 * result + (isSubscribe != null ? isSubscribe.hashCode() : 0);
        result = 31 * result + (recentlyRecord != null ? recentlyRecord.hashCode() : 0);
        result = 31 * result + (recentlyRecordDate != null ? recentlyRecordDate.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Analyze{" +
                "targetId='" + targetId + '\'' +
                ", isFriend=" + isFriend +
                ", isGroup=" + isGroup +
                ", isPoster" + isPoster +
                ", isSubscribe" + isSubscribe +
                ", recentlyRecord='" + recentlyRecord + '\'' +
                ", recentlyRecordDate=" + recentlyRecordDate +
                '}';
    }
}
